package com.atguigu.springcloud.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

import java.util.UUID;

/**
 * @USER: dayu
 * @DATE: 2020/4/8
 * @DESCRIPTION:
 */
@Service
public class LimitService {

    @SentinelResource(value = "show1")
    public String show1(){
        return "show1 \t"+UUID.randomUUID().toString();
    }


    @SentinelResource(value = "show2")
    public String show2(){
        return "show2 \t"+UUID.randomUUID().toString();
    }
}
